import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)
import Dashboard from '@/views/Dashboard'
export default new Router({
  mode: 'hash',
  base: process.env.BASE_URL,
  routes: [
    {
      path: '/',
      component: Dashboard,
      children: [
        {
          path: '/page1',
          component: () => import('@/views/Page1')
        },
        {
          path: '/page2',
          component: () => import('@/views/Page2')
        }
      ]
    },

  ],
})
